import os

prefix = "test"
count = 1

while count <= 50:
    folder_name = f"{prefix}{count}"
    if not os.path.exists(folder_name):
        os.mkdir(folder_name)
        count += 1
